package com.qidian.buy.product.service;

import com.qidian.buy.entity.Item;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qidian.buy.entity.ItemDesc;
import com.qidian.buy.util.pojo.BuyResult;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author 戴着假发的程序员
 * @since 2023-05-18
 */
public interface IItemService extends IService<Item> {
    /**
     * 带条件分页查询
     * @param page
     * @param limit
     * @param title
     * @return
     */
    BuyResult<Item> queryByPage(int page,int limit,String title);


    BuyResult saveItem(Item item, ItemDesc itemDesc);


    BuyResult queryById(Long id);

    void genHtml(Item item,ItemDesc itemDesc);

}
